/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package chameleon.model.formula.parser;

/**
 * This class contains, a tag that sepcify the type of the word and the string
 * representation of the word.
 *
 * @author simon
 */
public class Word {

    private String word_;
    private int tag_;

    public Word (String word, int tag){
        word_ = word;
        tag_ = tag;
    }

    public int getTag(){
        return tag_;
    }

    public String toString(){
        return word_;
    }

    void setTag(int tag) {
        tag_= tag;
    }

    void setWord(String str){
        word_ = str;
    }

}
